package com.zhanghe.study.action;

import org.apache.struts2.ServletActionContext;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * @author zh
 * @date 2020/12/21 16:05
 */
public class TestSacAction {
    public String execute(){
        HttpSession session = ServletActionContext.getRequest().getSession();

        HttpServletRequest request = ServletActionContext.getRequest();

        HttpServletResponse response = ServletActionContext.getResponse();
        return "session";
    }
}
